home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SCI Games E3 2005 Press Kit (USA)
/
SCI Games E3 2005 Press Kit (USA).bin
/
runme_mac.swf
/
scripts
/
DefineSprite_294
/
frame_45
/
DoAction.as
Wrap
Text File
|
2005-05-05
|
1KB
|
70 lines
function moveIndicator(xpos)
{
trace(rollover.indicator);
new mx.transitions.Tween(rollover.indicator,"_x",mx.transitions.easing.Bounce.easeOut,rollover.indicator._x,xpos,0.8,true);
new mx.transitions.Tween(rollover.glow,"_x",mx.transitions.easing.Bounce.easeOut,rollover.indicator._x,xpos,0.8,true);
dropzone.play();
}
function setStartPos(x)
{
rollover.indicator._x = x;
rollover.glow._x = x;
}
postion = new Array(0,105,563,670);
bt1.onRollOver = function()
{
moveIndicator(postion[0]);
};
bt1.onRelease = function()
{
_root.contentText.InitContentPanel("aboutUs");
};
bt2.onRollOver = function()
{
moveIndicator(postion[1]);
};
bt2.onRelease = function()
{
_root.contentText.InitContentPanel("releaseDate");
};
bt3.onRollOver = function()
{
moveIndicator(postion[2]);
};
bt3.onRelease = function()
{
_root.contentText.InitContentPanel("contactUs");
};
bt4.onRollOver = function()
{
moveIndicator(postion[3]);
};
bt4.onRelease = function()
{
_root.openMessageBox(_root.presskit);
};
bt6.onRollOut = function()
{
if(rollover.indicator._x > 400)
{
moveIndicator(850);
}
else
{
moveIndicator(-200);
}
};
bt6.onRollOver = function()
{
if(rollover.indicator._x > 400)
{
moveIndicator(850);
}
else
{
moveIndicator(-200);
}
};
setStartPos(-200);
stop();